function [data]=range_data(A,count,start_angle,end_angle)
     t=1;
     angle=start_angle;
     if start_angle>end_angle
         end_angle=end_angle+360;
         distance=(end_angle-start_angle)/(count/2);
         for i=1:2:count
         angle=angle+distance;
            if angle>360
             angle=angle-360;
            end
        L=(hex2dec(strcat(A(i+1,:),A(i,:))))/4;
%         L=roundn((L/1000),-3);
        data(t,1)=angle;
        data(t,2)=L;
        t=t+1;
        end
     else
         distance=(end_angle-start_angle)/(count/2);
           for i=1:2:count 
         angle=angle+distance;
         L=(hex2dec(strcat(A(i+1,:),A(i,:))))/4;
%          L=roundn((L/1000),-3);
        data(t,1)=angle;
        data(t,2)=L;
        t=t+1;
           end
     end
     
     end
